It is possible that a GtkLayout may have been scrolled _before_ it was
authorJody Goldberg <jody@gnome.org>
Wed, 16 Jan 2002 06:01:31 +0000 (06:01 +0000)
committerJody Goldberg <jody@src.gnome.org>
Wed, 16 Jan 2002 06:01:31 +0000 (06:01 +0000)
2002-01-15  Jody Goldberg <jody@gnome.org>

* gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
GtkLayout may have been scrolled _before_ it was realized.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtklayout.c

index 6cf2623bd5429c0da7bc1df12285713d8616d1ef..b7863283626ef5071feccfde1bbc924fc25c6322 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-15  Jody Goldberg <jody@gnome.org>
+
+       * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
+       GtkLayout may have been scrolled _before_ it was realized.
+
 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
index 6cf2623bd5429c0da7bc1df12285713d8616d1ef..b7863283626ef5071feccfde1bbc924fc25c6322 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-15  Jody Goldberg <jody@gnome.org>
+
+       * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
+       GtkLayout may have been scrolled _before_ it was realized.
+
 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
index 6cf2623bd5429c0da7bc1df12285713d8616d1ef..b7863283626ef5071feccfde1bbc924fc25c6322 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-15  Jody Goldberg <jody@gnome.org>
+
+       * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
+       GtkLayout may have been scrolled _before_ it was realized.
+
 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
index 6cf2623bd5429c0da7bc1df12285713d8616d1ef..b7863283626ef5071feccfde1bbc924fc25c6322 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-15  Jody Goldberg <jody@gnome.org>
+
+       * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
+       GtkLayout may have been scrolled _before_ it was realized.
+
 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
index 6cf2623bd5429c0da7bc1df12285713d8616d1ef..b7863283626ef5071feccfde1bbc924fc25c6322 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-15  Jody Goldberg <jody@gnome.org>
+
+       * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
+       GtkLayout may have been scrolled _before_ it was realized.
+
 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
index 6cf2623bd5429c0da7bc1df12285713d8616d1ef..b7863283626ef5071feccfde1bbc924fc25c6322 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-15  Jody Goldberg <jody@gnome.org>
+
+       * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
+       GtkLayout may have been scrolled _before_ it was realized.
+
 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
index 6cf2623bd5429c0da7bc1df12285713d8616d1ef..b7863283626ef5071feccfde1bbc924fc25c6322 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-15  Jody Goldberg <jody@gnome.org>
+
+       * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
+       GtkLayout may have been scrolled _before_ it was realized.
+
 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
index 73831f8f43cd7468a1f9c26c31295f8b077367fd..d8d8c5bc71879ff75e119b4a6114a1410c4c27ff 100644 (file)
@@ -812,8 +812,8 @@ gtk_layout_realize (GtkWidget *widget)
                                   &attributes, attributes_mask);
   gdk_window_set_user_data (widget->window, widget);
 
-  attributes.x = 0;
-  attributes.y = 0;
+  attributes.x = - layout->hadjustment->value,
+  attributes.y = - layout->vadjustment->value;
   attributes.width = MAX (layout->width, widget->allocation.width);
   attributes.height = MAX (layout->height, widget->allocation.height);
   attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK |